Skip to content

Method: static {...}

1: /**
2: * Copyright (C) 2022 Czech Technical University in Prague
3: *
4: * This program is free software: you can redistribute it and/or modify it under
5: * the terms of the GNU General Public License as published by the Free Software
6: * Foundation, either version 3 of the License, or (at your option) any
7: * later version.
8: *
9: * This program is distributed in the hope that it will be useful, but WITHOUT
10: * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11: * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
12: * details. You should have received a copy of the GNU General Public License
13: * along with this program. If not, see <http://www.gnu.org/licenses/>.
14: */
15: package cz.cvut.kbss.ontodriver.rdf4j.config;
16:
17: import cz.cvut.kbss.ontodriver.config.ConfigurationParameter;
18: import cz.cvut.kbss.ontodriver.config.OntoDriverProperties;
19:
20: /**
21: * RDF4J driver configuration parameters.
22: *
23: * @see OntoDriverProperties
24: * @see Rdf4jOntoDriverProperties
25: */
26: public enum Rdf4jConfigParam implements ConfigurationParameter {
27:
28: USE_VOLATILE_STORAGE(Rdf4jOntoDriverProperties.USE_VOLATILE_STORAGE),
29: USE_INFERENCE(Rdf4jOntoDriverProperties.USE_INFERENCE),
30: LOAD_ALL_THRESHOLD(Rdf4jOntoDriverProperties.LOAD_ALL_THRESHOLD),
31: USERNAME(OntoDriverProperties.DATA_SOURCE_USERNAME),
32: PASSWORD(OntoDriverProperties.DATA_SOURCE_PASSWORD),
33: REPOSITORY_CONFIG(Rdf4jOntoDriverProperties.REPOSITORY_CONFIG),
34: RECONNECT_ATTEMPTS(Rdf4jOntoDriverProperties.RECONNECT_ATTEMPTS),
35: INFERENCE_IN_DEFAULT_CONTEXT(Rdf4jOntoDriverProperties.INFERENCE_IN_DEFAULT_CONTEXT);
36:
37: private final String name;
38:
39: Rdf4jConfigParam(String name) {
40: this.name = name;
41: }
42:
43: @Override
44: public String toString() {
45: return name;
46: }
47: }